package com.jason.www.disruptor.multievent;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Component;

@Component
public class BHandler implements MultiEventHandler{
    private static final Logger LOGGER = Logger.getLogger(BHandler.class);

    @Override
    public void onEvent(MultiEvent multiEvent, long sequence, boolean endOfBatch) {
        String msg = multiEvent.getMsg();
        LOGGER.info("BHandler异步执行：" + msg);
    }
}
